<template>
  <div class="weGame-Menu">
    <div>
      <ul class="weGame-Menu-list">
        <li class="weGame-Menu-list-item" :key="index" v-for="(item,index) in Menu">
          {{item.name}}
        </li>
      </ul>
    </div>
    <div class="weGame-Menu-right">
      <div class="weGame-Menu-right-hot">
        <div>三国杀</div>
      </div>
      <div class="weGame-Menu-right-search">
        <input placeholder="三国杀" type="text">
        <search-outlined class="icon" />
      </div>
    </div>
  </div>
</template>

<script>
import { defineComponent, reactive } from "vue";
import { SearchOutlined } from "@ant-design/icons-vue"; //icon
export default defineComponent({    
  components: {
    SearchOutlined,
  },
  setup() {
    let Menu = reactive([
      {
        name: "精选",
      },
      {
        name: "单机",
      },
      {
        name: "网游",
      },
      {
        name: "端手互通",
      },
    ]);
    return {
      Menu,
    };
  },
});
</script>

<style scoped lang="less">
.weGame-Menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  &-list {
    display: flex;
    padding: 20px 0;
    &-item {
      margin-right: 20px;
      color: rgba(0, 0, 0, 0.6);
    }
  }
  &-right {
    display: flex;
    align-items: center;
    &-hot {
      margin-right: 20px;
      color: rgba(0, 0, 0, 0.6);
    }
    &-search {
      border-radius: 4px;
      background-color: rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      .icon {
        padding-right: 10px;
      }
      input {
        background-color: transparent;
        border: none;
        padding: 2px 5px 3px 15px;
        font-size: 13px;
        line-height: 18px;
        height: 30px;
      }
    }
  }
}
</style>